<?php
class Products extends CActiveRecord
{
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }
    
    public function tableName()
    {
        return strtolower(get_class($this));
    }
    
    public function relations()
    {
        return array(
            'site'=>array(self::BELONGS_TO,'Sites','site_id'),
        );
    }
}